package com.yzr.pojo;

import java.util.Arrays;
import java.util.Map;

/**
 * @description
 * @author: yx-0173
 * @date: 2021-08-30 14:57
 **/
public class Person {
    private String name;

    private Integer age;

    private String sex;

    private String[] phones;

    private Map<String, String> body;

    public Person(String name, Integer age, String sex, String[] phones, Map<String, String> body) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.phones = phones;
        this.body = body;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String[] getPhones() {
        return phones;
    }

    public void setPhones(String[] phones) {
        this.phones = phones;
    }

    public Map<String, String> getBody() {
        return body;
    }

    public void setBody(Map<String, String> body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", phones=" + Arrays.toString(phones) +
                ", body=" + body +
                '}';
    }
}
